package com.black.system.domain.resp.system;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.black.common.annotation.DictDataProperty;
import com.black.system.excelconvert.SysDictDataConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author L
 */
@Getter
@Setter
@ApiModel(value = "SysRoleResp", description = "角色信息响应对象")
@ExcelIgnoreUnannotated
public class SysRoleResp {

    @ExcelProperty(value = "角色编号", index = 0)
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ExcelProperty(value = "角色名称", index = 1)
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ExcelProperty(value = "权限字符", index = 2)
    @ApiModelProperty(value = "角色权限字符")
    private String roleKey;

    @ExcelProperty(value = "显示顺序", index = 3)
    @ApiModelProperty(value = "显示顺序")
    private Integer roleSort;

    @ExcelProperty(value = "角色状态", converter = SysDictDataConverter.class, index = 4)
    @ApiModelProperty(value = "角色状态（0正常 1停用）")
    @DictDataProperty(value = "sys_normal_disable")
    private String status;

    @ExcelProperty(value = "创建时间", index = 5)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}
